package com.rcloud.server.sealtalk.model.dto;

import io.rong.messages.BaseMessage;
import io.rong.util.GsonUtil;

/**
 * @Author hyy
 * @Description: Date: Create in 13:48 2020/8/9
 * Modified:
 */
public class RCRptipMessageDto extends BaseMessage {
    private String sendUserName;
    private String sendUserId;
    private String receiveUserName;
    private String receiveUserId;
    private String targetId;
    private String objectName;
    private Integer redPackgeId;
    private Integer isBest;

    public void valid() {
        if (receiveUserId == null) throw new AssertionError();
        if (targetId == null) throw new AssertionError();
        if (redPackgeId == null) throw new AssertionError();
        if (objectName == null) throw new AssertionError();
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getSendUserName() {
        return sendUserName;
    }

    public void setSendUserName(String sendUserName) {
        this.sendUserName = sendUserName;
    }

    public String getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(String sendUserId) {
        this.sendUserId = sendUserId;
    }

    public String getReceiveUserName() {
        return receiveUserName;
    }

    public void setReceiveUserName(String receiveUserName) {
        this.receiveUserName = receiveUserName;
    }

    public String getReceiveUserId() {
        return receiveUserId;
    }

    public void setReceiveUserId(String receiveUserId) {
        this.receiveUserId = receiveUserId;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public Integer getRedPackgeId() {
        return redPackgeId;
    }

    public void setRedPackgeId(Integer redPackgeId) {
        this.redPackgeId = redPackgeId;
    }

    public Integer getIsBest() {
        return isBest;
    }

    public void setIsBest(Integer isBest) {
        this.isBest = isBest;
    }

    @Override
    public String getType() {
        return objectName;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, RCRptipMessageDto.class);
    }
}
